<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['数据统计','数据绘图']" icon="fa fa-area-chart" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<sa-widgets-grid>
		<div class="s_table">
			<div sa-widget [editbutton]="false" color="darken" class="clearfix">
				<div class="no-padding">
					<div class="page-header clearfix s_table_opreation">
						<div class="left page-header-btn">
							<sa-company-tree-car-btn companyTreeId="companyTree" (companySelected)="companySelected($event)"></sa-company-tree-car-btn>
							<div class="top_module">
								<span class="module_text">设备ID</span>
								<input class="module_inp" type="number" disabled [(ngModel)]="deviceId" />
							</div>
							<div class="selectDate top_module">
								<table-select-date  (outerTime)="getSelectChartTime($event)" [notInit]="true" [specifyTime]='specifyTime' ></table-select-date>
							</div>
							<div class="top_module">
								<span class="module_text">选择天数</span>
								<select name="" id="" class="module_inp"  [(ngModel)]="dateNumber" (change)='selectDate()'>
									<option value="0">请选择</option>
									<option value="1">近1天</option>
									<option value="2">近2天</option>
									<option value="3">近3天</option>
									<option value="4">近4天</option>
									<option value="5">近5天</option>
									<option value="6">近6天</option>
									<option value="7">近7天</option>
								</select>
							</div>
							<button type="button" class="btn btn-primary" (click)="showChart()">数据绘图</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</sa-widgets-grid>
	<!--authority   用户没有权限时 条件为true 折线图做权限限制 关闭AD 地磅  修正功能   -->
	<div  class="chartMapWarp" >
		<sa-chart-bmap [height]='420' [offDatas]='true'  [inputParams]='chartlineParams' 
			[hideAD]='false' [hideDB]='true' [hideSP]='true' [isAuditData]="false" 
			[dataMapAuthority]="dataMapAuthority"  [authority]='!statsDrawAD' [isBaiduMap]='true' 
			[noAbnormity]='true' (outerSend)="runParent($event)" 
			(outerIsMap)='showMapView($event)' [isShowModify]='true'></sa-chart-bmap>
		<div style="height: 12px;background: #eeeeee;"></div>
		<div [hidden]='!isMapView' style="padding: 12px;">
			<sa-bmap-chart [trackParams]='drawTrackArr' [isShowBmap]='isMapView' deviceId="deviceId"></sa-bmap-chart>
		</div>
	</div>
</div>